package com.mowh.gof23.structural.patterns.adapter.inherit;

/**
 * @author mowh1gd
 * @create 2023/10/7 15:54
 */
//类适配器模式（extends继承方式）
public class PrintBanner extends Banner implements Print{
    public PrintBanner(String name) {
        super(name);
    }

    @Override
    public void printWeak() {
        showWithParentheses();
    }

    @Override
    public void printStrong() {
        showWithAsterisk();
    }
}
